package com.aqie.meet.ui.login;

import android.annotation.SuppressLint;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.aqie.libcommon.app.ToolbarActivity;
import com.aqie.meet.R;

import butterknife.BindView;

public class PrivacyActivity extends ToolbarActivity {

    @BindView(R.id.privacy_webview)
    WebView webView;

    private final String URL = "http://47.104.240.41/protocol.html";

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_privacy;
    }

    @SuppressLint("SetJavaScriptEnabled")
    public void initData() {
        setTitle("用户协议及隐私政策");
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webSettings.setUseWideViewPort(true);
        webView.loadUrl(URL);
    }

}